package practise;

/**
 * Created by Xiang on 2014/8/17.
 */
public class Lake {
    public static void main(String[] args) {
        int k = 1;
        int a[] = {1,5,2,31,12,64,72,15,100,46,68};
        int temp;
        for (int i = 0; i < a.length; i++) {
            for (int j = i+1;j<a.length;j++) {
                if (a[i] > a[j]) {
                    temp = a[i];
                    a[i] = a[j];
                    a[j] = temp;
                }
            }
        }

        for (int i:a){
            System.out.println(i);
        }
    }
}
